<!DOCTYPE html>
<html>
<head>
    <title>交易平台</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="用户昵称/手机号码"/>
                </i-col>
                <i-col span="4">
                    <i-select v-model="q.type" placeholder="类型" >
                        <i-option value="0">充链</i-option>
                        <i-option value="1">提链</i-option>
                    </i-select>
                </i-col>
                <i-col span="4">
                    <i-select v-model="q.status" placeholder="提链状态" >
                        <i-option value="0">提链中</i-option>
                        <i-option value="1">提链完成</i-option>
                        <i-option value="2">提链失败</i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                <!--#if($shiro.hasPermission("otcplatformrecord:save"))-->
                <!--<i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>-->
                <!--#end-->
                #if($shiro.hasPermission("otcplatformrecord:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;审核</i-button>
                #end
                <!--#if($shiro.hasPermission("otcplatformrecord:delete"))-->
                <!--<i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>-->
                <!--#end-->
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="otcPlatformRecord" :rules="ruleValidate" :label-width="120">
            <!--<Form-item label="用户id" prop="userid">-->
                <!--<i-input v-model="otcPlatformRecord.userid" placeholder="用户id"/>-->
            <!--</Form-item>-->
            <!--<Form-item label="交易平台id" prop="platformId">-->
                <!--<i-input v-model="otcPlatformRecord.platformId" placeholder="交易平台id"/>-->
            <!--</Form-item>-->
            <Form-item label="用户" prop="userid" style="width: 268px;">
                <i-select v-model="otcPlatformRecord.userid" value-key="otcPlatformRecord.userid" prop="userselect" filterable label-in-value readonly="true">
                    <i-option v-for="user in users" :value="user.did"
                              :key="user.did">{{user.nickname}}
                    </i-option>
                </i-select>
            </Form-item>
            <Form-item label="交易平台" prop="platformId" style="width: 268px;">
                <i-select v-model="otcPlatformRecord.platformId" value-key="otcPlatformRecord.platformId" prop="platformselect" filterable label-in-value readonly="true">
                    <i-option v-for="platform in platforms" :value="platform.id"
                              :key="platform.id">{{platform.name}}
                    </i-option>
                </i-select>
            </Form-item>

            <Form-item label="提链地址" prop="address">
                <i-input v-model="otcPlatformRecord.address" placeholder="提链地址" readonly="true"/>
            </Form-item>
            <Form-item label="提链数量" prop="count">
                <i-input v-model="otcPlatformRecord.count" placeholder="提链数量" readonly="true"/>
            </Form-item>
            <Form-item label="手续费" prop="poundage">
                <i-input v-model="otcPlatformRecord.poundage" placeholder="手续费" readonly="true"/>
            </Form-item>
            <Form-item label="到账数量" prop="realcount">
                <i-input v-model="otcPlatformRecord.realcount" placeholder="到账数量" readonly="true"/>
            </Form-item>

            <Form-item label="类型" prop="type">
                <Radio-group v-model="otcPlatformRecord.type" readonly="true">
                    <Radio label="1" disabled>
                        <span>充链</span>
                    </Radio>
                    <Radio label="0">
                        <span>提链</span>
                    </Radio>
                </Radio-group>
            </Form-item>

            <Form-item label="提链状态" prop="status">
                <Radio-group v-model="otcPlatformRecord.status" readonly="true">
                    <Radio label="0">
                        <span>提链中</span>
                    </Radio>
                    <Radio label="1">
                        <span>提链成功</span>
                    </Radio>
                    <Radio label="2">
                        <span>提链失败</span>
                    </Radio>
                </Radio-group>
            </Form-item>


            <Form-item label="提链时间" prop="addTime">
                <Date-picker :value="otcPlatformRecord.addTime"   format="yyyy-MM-dd HH:mm:ss"  placeholder="提交时间"  readonly="true" readonly="true" />
            </Form-item>
            <Form-item label="审核时间" prop="updateTime">
                <Date-picker :value="otcPlatformRecord.updateTime"   format="yyyy-MM-dd HH:mm:ss"  placeholder="审核时间"  readonly="true"  readonly="true"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <!--<i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>-->
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/shop/otcplatformrecord.js?_${date.systemTime}"></script>
</body>
</html>